import React, { Component,PropTypes } from 'react';
import {GetQueryString,loadToken} from '../../Action/rpc'
import {WechatShareAuth} from '../../Action/autoLogin'

export default class ShareToTakeCode extends Component {
    async componentWillMount() {
        const getToken = loadToken();
        if(getToken == '' ||getToken == null ||getToken == 'null'){
            sessionStorage.setItem('orderID',GetQueryString('orderID'))
            sessionStorage.setItem('agentID',GetQueryString('agentID'))
            await WechatShareAuth()
        }
    }

    render() {
        return (
            <section>

            </section>
        );
    }
}
